home *** CD-ROM | disk | FTP | other *** search
- Subject: Re:Scripting
- Sent: 6/28/96 3:10 PM
- Received: 6/28/96 3:21 PM
- From: Stephane SILVESTRE, jipe@imaginet.fr
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >For the Script Editor to compile a script against your dictionary, you
- must
- >have an instance of your part up and running. You must specify the running
- >part in the "tell" block of the script.
- >
- >For example, if your part editor is called SurfWriter, create a new
- >document called "SurfWriter Sample". Save the document and reopen it. This
- >is necessary because the first time you create a document, the name of the
- >document is out of synch its process name. With your document open, type:
- >
- >tell application "SurfWriter Sample"
- > ...
- >end tell
- >
- >When you double-click your document to open it, a small application called
- >the OpenDoc Launcher actually launches and then sub-launches your
- document.
- >Make sure you wait for the OpenDoc Launcher to quit before attempting to
- >compile your script. If you don't wait, your script will be compiled
- >against the launcher, instead of against your part.
-
- It's exactly what I have done and I always get a syntax error "expected
- class name but got identifier".
-
- Stephane.
-